home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Linux Cubed Series 7: Sunsite
/
Linux Cubed Series 7 - Sunsite Vol 1.iso
/
system
/
shells
/
scsh-0.4
/
scsh-0
/
scsh-0.4.2
/
scsh
/
hpux
/
bufpol.scm
next >
Wrap
Text File
|
1995-10-13
|
573b
|
18 lines
;;; Flags that control buffering policy.
;;; Copyright (c) 1993 by Olin Shivers.
;;; These are for the SET-PORT-BUFFERING procedure, essentially a Scheme
;;; analog of the setbuf(3S) stdio call. We use the actual stdio values.
;;; These constants are not likely to change from stdio lib to stdio lib,
;;; but you need to check when you do a port.
(define-syntax define-bufpols
(syntax-rules ()
((define-bufpols form ...)
(begin (define-enum-constant "bufpol" . form) ...))))
(define-bufpols
(block 0) ; _IOFBF
(line #o200) ; _IOLBF
(none 4)) ; _IONBF